const object = {
  foo: "foo"
}

var p = new Proxy(object, {
  get: function(receiver, name) {
    console.info(receiver, name)
    return `hello, ${receiver[name]}`
  },
  set: function(receiver, name, value) {
    console.info("set", receiver, name, value)
    receiver[name] = value;
    return undefined;
  }
})

console.info(p.foo);
p.foo = "123"
console.info(p.foo);
